package net.tailfish.starter.common.generator;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @PackageName net.tailfish.starter.common.generator
 * @ClassName GeneratorProperties
 * @Author tailFish
 * @Date Created in 11:17 2021/7/26
 * @Description 配置
 */
@ConfigurationProperties(prefix = "id.snowflake")
public class GeneratorProperties {

    /**
     * 终端ID
     */
    private Long workerId = 0l;

    /**
     * 数据中心ID
     */
    private Long datacenterId = 0l;

    public Long getWorkerId() {
        return workerId;
    }

    public void setWorkerId(Long workerId) {
        this.workerId = workerId;
    }

    public Long getDatacenterId() {
        return datacenterId;
    }

    public void setDatacenterId(Long datacenterId) {
        this.datacenterId = datacenterId;
    }
}
